export default (pagination: any) => {
  const { unit = '条', ...rest } = pagination;
  return {
    pagination: {
      pageSizeOptions: [5, 10, 20, 30, 50],
      showQuickJumper: true,
      showSizeChanger: true,
      showTotal: () => `共 ${pagination.total} ${unit}`,
      ...rest,
    },
  };
};
